[]
        
(Showing Draft Content)

data.ISemanticMessageQueue

接口: ISemanticMessageQueue

data.ISemanticMessageQueue

Table of contents

属性

属性

dequeue

dequeue: () => SemanticMessage

Type declaration

▸ (): SemanticMessage

Returns

SemanticMessage


enqueue

enqueue: (message: SemanticMessage) => void

Type declaration

▸ (message): void

Parameters
名称 类型
message SemanticMessage
Returns

void


isEmpty

isEmpty: () => boolean

Type declaration

▸ (): boolean

Returns

boolean


peek

peek: (predicate: (message: SemanticMessage) => boolean) => SemanticMessage

Type declaration

▸ (predicate): SemanticMessage

Parameters
名称 类型
predicate (message: SemanticMessage) => boolean
Returns

SemanticMessage